package com.serverdemo.core.net;

/**
 * 消息包
 * Created by wangqiang on 2020/4/9.
 */
public class NetPacket
{
    /**
     * 消息id
     */
    private int id;

    /**
     * 消息体长度
     */
    private int length;

    /**
     * 消息体
     */
    private byte[] body;

    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public int getLength()
    {
        return length;
    }

    public void setLength(int length)
    {
        this.length = length;
    }

    public byte[] getBody()
    {
        return body;
    }

    public void setBody(byte[] body)
    {
        this.body = body;
    }
}
